Equation Viewer

Use the Equation Viewer to see all your model equations organized according to options you select in the dialog.

To open the Equation Viewer, choose Equation Viewer from the Model menu.

 

Order

Use these options to select the order in which you want the equations to be listed.

By Module, if checked, will list the contents of each module, starting from the root. The modules will be ordered alphabetically. Within each module, Stocks and their associated flows will be listed first, then Converters.

Order of execution, if checked, will list variables in the order they're computed. The initialization order will be listed first, then the runtime order, so most variables will be listed twice.

Note: If you're using Delay Converters, the Runtime order specified when you choose order of execution may not be accurate; expressions such as SMTH1(a,b,c) are expanded to several intermediate computations, which may be interspersed with other model variables.

By Sector, if checked, will list the contents of each sector together. Variables not in a sector will be listed first.

A-Z, if checked, will list everything alphabetically. Variables inside of modules will be listed with the module name as a prefix, to make them unambiguous. Everything in the root model will be listed first, followed by modules and their content in alphabetical order.

Keep Flows with Stocks, if checked, will list flows below the stocks that the are connected to. Flows that connect two stocks will be listed twice. If this is not checked flows will be listed based on the ordering selected.

Show:

Units, if checked, will show the units of measure in addition to the equations.

Documentation, if checked, will list any documentation written for the variables in addition to the equations.

Annotations, if checked, will include annotations on non-negative stocks, discrete stocks and uniflows. It will also place summary information about the model at the bottom of the equations. All the annotations are enclosed in {} (the comment delimiter for equations).

Used by, if checked, will list the variables that use the current variable. This can be helpful in building context around the purpose of a variable.

Values, if checked, will display the values of each of the variables when it is defined. This is available only if the variables are ordered by execution. If the model has not been run, the initial computed value will be reported. If the model has been run the final value will be reported. This is the same as the value seen when hovering over a variable on the model diagram.

Export to File allows you to save the content to a file. A file selection dialog will open when you click on this.

Export to Clipboard will put the equations listed into the clipboard so you can paste them into another application.